import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui'
import './style/index.less'
import 'element-ui/lib/theme-chalk/index.css'
import '@/permission'
import './style/index.css'
import '@/permission'
import './assets/icon-font/iconfont.css'
import i18n from '@/lang'

Vue.config.productionTip = false

// 注册全局音乐播放组件
import AudioPlayers from '@/views/AudioPlayer/index.vue'
Vue.component('AudioPlayers', AudioPlayers)

Vue.config.productionTip = false
Vue.use(ElementUI, {
  i18n: (key, value) => i18n.t(key, value)
})
new Vue({
  router,
  store,
  i18n,
  render: (h) => h(App)
}).$mount('#app')
